package com.haike.pushjobs.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "quartz")
public class JobConfig {
    private List<JobProperties> jobs;

    @Data
    public static class JobProperties {
        private String name;
        private boolean enabled;
        private String group;
        private String className;
        private String cron;
        private Long fixedRate;
        private String description;
        private String param;
    }
}    